// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import Vant from 'vant';
import 'vant/lib/vant-css/index.css';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import iView from 'iview';
import 'iview/dist/styles/iview.css';
import httpRequest from '@/utils/httpRequest' // api: https://github.com/axios/axios
import VueCookie from 'vue-cookie'            // api: https://github.com/alfhen/vue-cookie

Vue.config.productionTip = false

Vue.use(Vant);
Vue.use(ElementUI);
Vue.use(iView);
Vue.use(VueCookie);
Vue.use(store);

// 挂载全局
Vue.prototype.$http = httpRequest // ajax请求方法
// Vue.prototype.$vant = Vant

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
